package com.foreknow.service.impl;

import com.foreknow.dao.ConstanttypeMapper;
import com.foreknow.entity.Constanttype;
import com.foreknow.service.ConstanttypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ConstanttypeServiceImpl  implements ConstanttypeService {
    @Autowired
    private ConstanttypeMapper constanttypeMapper;


    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    /**
     * 添加
     *
     * @param record
     * @return
     */
    @Override
    public int insert(Constanttype record) {
        return 0;
    }

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    @Override
    public Constanttype selectByPrimaryKey(Integer id) {
        return null;
    }

    /**
     * 根据record更新
     *
     * @param record
     * @return
     */
    @Override
    public int updateByPrimaryKeySelective(Constanttype record) {
        return 0;
    }

    /**
     * 根据record更新
     *
     * @param record
     * @return
     */
    @Override
    public int updateByPrimaryKey(Constanttype record) {
        return 0;
    }

    /**
     * 查询所有
     *
     * @return
     */
    @Override
    public List<Constanttype> findAll() {
        return constanttypeMapper.findAll();
    }
}
